export function formatPrice(price) {
  if (typeof price === "string") {
    price = price.replace(/^\s*[$¥]+/, "");
  }
  price = Number.parseFloat(price);

  return Number.isNaN(price) ? "--" : price.toFixed(2);
}
